<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
    <button id="btn">增加</button> <button id="BTN">删除</button>
	<div id="div_body">
	    <div>你在干什么？♥，φ(゜▽゜*)♪，(*^_^*)，/(ㄒoㄒ)/~~<div>
	</div>
 </body>
 <script>
     var btn = document.getElementById("btn");
	 var BTN = document.getElementById("BTN");
	 var i = 1;
	 btn.addEventListener("click",function(){
	    var divBody = document.getElementById("div_body");
		var div = document.createElement("div");
		div.innerHTML = "你在干什么？♥，φ(゜▽゜*)♪，(*^_^*)，/(ㄒoㄒ)/~~"+i++;
		div.style.color="blue";
		divBody.appendChild(div);
	 
	 })
	 BTN.addEventListener("click",function(){
	    var divBody = document.getElementById("div_body");
		var s1 = divBody.lastChild;
		var s2 = divBody.firstChild;
		divBody.removeChild(s2);
	 })
 </script>
</html>
